import { http } from '@/utils/http'

/**
 * 车辆油电量异常列表处理
 */
export const oilErrorHandler = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/oilErrorHandler',
    data,
  })
}
export const oilErrorList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/oilErrorList',
    data,
  })
}
/**
 * 车辆里程异常处理
 */
export const mileageErrorHandler = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/mileageErrorHandler',
    data,
  })
}
export const mileageError = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/mileageErrorList',
    data,
  })
}
export const errorList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/errorList',
    data,
  })
}
/**
 * 车辆异动处理
 */
export const abnormalMovementHandle = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/abnormalMovementHandle',
    data,
  })
}
export const abnormalMovementList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/abnormalMovementList',
    data,
  })
}
/**
 * 车辆待巡检处理
 */
export const viewHandler = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/viewHandler',
    data,
  })
}

export const viewList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/car/viewList',
    data,
  })
}
/**
 * 车辆多天未动处理
 */
export const unmoveHandler = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/unmoveHandler',
    data,
  })
}
export const unmoveList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/unmoveList',
    data,
  })
}

export const electricFenceList = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/warning/carVehicle/electricFenceList',
    data,
  })
}

export const getWarnConfig = (data: Object) => {
  return http({
    method: 'POST',
    url: '/V5/enterpriseWarnConfig/getWarnConfig',
    data,
  })
}
